<!-- Web Upload Account Create PHP File -->
<!-- Reveions History ...
	Rev 1.00 at 2015/06/08 by Max Yin:
		1. First time create
	Rev 1.01 at 2015/07/08 by Max Yin:
		1. 由標楷體, 改成新細明體
-->
<html>
	<body background="pic/background_06.gif">
	<head>
		<font face="新細明體,time new roman,Arial">
		<meta charset="UTF-8">
	</head>
	<body>
		<center>
			<?php
				require_once('class_package/common.php');
				if ( $_COOKIE['seach_user'] == 'all' ) 
					$del_username = $_POST['accout_username'];
				else
					$del_username = $_COOKIE['seach_user'];
				
				// To delete the account by user name from MySQL ...
				$result = account_delete($del_username);				
				if ( $result )
					if ( $_COOKIE['seach_user'] == 'all' ) 
						echo "<script>alert('该帐号, 已删除成功!');history.go(-3);</script>";
					else 
						echo "<script>alert('该帐号, 已删除成功!');history.go(-2);</script>";
				else
					if ( $_COOKIE['seach_user'] == 'all' ) 
						echo "<script>alert('该帐号, 删除失败! 请联系程式开发人员, 并查明原因...');history.go(-3);</script>";
					else 
						echo "<script>alert('该帐号, 删除失败! 请联系程式开发人员, 并查明原因...');history.go(-2);</script>";
				
				exit();
			?>
		</center>
	</body>
</html>

